#include <QCoreApplication>
#include <iostream>
#include <cmath>
using namespace std;

int main(int argc, char *argv[])
{
    QCoreApplication a1(argc, argv);

//Begin11
    cout<<"Vvedite pervoe chislo(a): ";
    int a;
    cin>>a;
    a=abs(a);
    cout<<"Vvedite vtoroe chislo(b): ";
    int b;
    cin>>b;
    b=abs(b);
    cout<<"a+b= "<<a+b<<", a-b= "<<a-b<<", b-a= "<<b-a<<", a*b= "<<a*b<<", a/b= "<<a/double(b)<<", b/a= "<<b/double(a)<<endl<<endl;

//Begin12
    cout<<"Vvedite katet a: ";
    cin>>a;
    cout<<"Vvedite katet b: ";
    cin>>b;
    double c=sqrt(a*a+b*b);
    cout<<"Gipotenuza c= "<<c<<", Perimetr = "<<a+b+c<<endl<<endl;

//Integer11
    cout<<"Vvedite trehznachnoe chislo: ";
    cin>>a;
    a=int(a);
    cout<<"Summa ego cifr: "<<(a/100+(a/10-(a/100*10))+(a-(a/10*10)))<<", proizvedenie ego cifr: "<<(a/100*(a/10-(a/100*10))*(a-(a/10*10)))<<endl<<endl;

//Integer12
    cout<<"Vvedite trehznachnoe chislo: ";
    cin>>a;
    cout<<"Vashe chislo naoborot: "<<(a-(a/10*10))<<a/10-(a/100*10)<<a/100<<endl<<endl;

//Boolean11
    cout<<"Vvedite chislo a: ";
    cin>>a;
    cout<<"Vvedite chislo b: ";
    cin>>b;
    if(a%2==0&&b%2==0)
    {
        cout<<"a i b imeut odinakovuy chetnost'.";
    }
    else
    {
        cout<<"a i b imeut raznuy chetnost'.";
    }
    cout<<endl<<endl;

//Boolean12
    cout<<"Vvedite chislo a: ";
    cin>>a;
    cout<<"Vvedite chislo b: ";
    cin>>b;
    cout<<"Vvedite chislo c: ";
    c=int(c);
    cin>>c;
    if(a>0&&b>0&&c>0)
    {
        cout<<"vse chisla >0";
    }
    else
    {
        cout<<"ne vse chisla >0";
    }

    return a1.exec();
}
